package com.lanhang.controller;

import com.lanhang.entity.Specificationoption;
import com.lanhang.service.SpecificationoptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/specificationoption")
    public class SpecificationoptionController {
        @Autowired
        private SpecificationoptionService specificationoptionService;
        @GetMapping("/list")
        public List<Specificationoption> findSpecificationoption(){
            return specificationoptionService.findSpecificationoption();
        }
    }

